<?php

namespace App\Http\Controllers\Api\v1;

use App\Http\Controllers\Controller;
use App\Master\Home\CacheSystem;
use App\Utils\AppResult;

/**
 * 文章示例
 * Author:panda
 * Email:joeyoung0314@qq.com
 * Class ArticleController
 * @package App\Http\Controllers\Api\v1
 */
class CommonController extends Controller
{
    // 日志模块名称
    const LOG_MODULE = 'v1/CommonController';

    /**
     * 站点信息
     * @return string
     */
    public function siteInfo(): string
    {
        $site = CacheSystem::createSite();
        unset($site['__table']);

        return AppResult::response200(result: [
            'site_info' => $site
        ]);
    }
}
